<?php
class NotesController extends AppController {

    function add() {                  
        if (!empty($this->data)) {
            $user = $this->Auth->user();             
            $this->data['Note']['user_id'] = $user['User']['id'];
            return parent::add();
        }
    }
}
?>